
#ifndef Lines_FadeEffect_h
#define Lines_FadeEffect_h

#include "SpriteEffect.h"

class FadeEffect : public SpriteEffect
{
private:
    float m_fInitAlpha;
    float m_fEndAlpha;
    
    bool m_bHasInit;
    
protected:
    void updateEffect(float _fPerc);
    void enableEffect(bool _bValue);
        
public:
    FadeEffect(RenderableEntity* _entity, float _fDuration, bool _bEnabled, bool _bLoop, float _fInitAlpha, float fEndAlpha);
    FadeEffect(RenderableEntity* _entity, float _fDuration, bool _bEnabled, bool _bLoop, float fEndAlpha);
    
    void setParams(float _fInitAlpha, float _fEndAlpha, bool _bHasInit = true);
    
};

#endif
